package com.blb.zycommunity.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.zycommunity.entity.ZyLiked;
import com.blb.zycommunity.entity.ZyOwner;
import com.blb.zycommunity.mapper.ZyLikedMapper;
import com.blb.zycommunity.mapper.ZyOwnerMapper;
import com.blb.zycommunity.service.IZyLikedService;
import com.blb.zycommunity.service.IZyOwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 业主  服务实现类
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
@Service
public class ZyLikedServiceImpl extends ServiceImpl<ZyLikedMapper, ZyLiked> implements IZyLikedService {

    @Autowired
    private ZyLikedMapper zyLikedMapper;


    @Override
    public void saveLiked(String interactionId,String ownerId) {
        zyLikedMapper.insertLiked(interactionId, ownerId);
    }

    @Override
    public void removeLiked(String interactionId, String ownerId) {
        zyLikedMapper.deleteLiked(interactionId,ownerId);
    }
}
